package com.qwz.example.abssegment;

import com.qwz.example.realize.MessageImplementor;
/**  
* @Description: 特急消息的实现
* @Package com.qwz.example.abssegment.SpecialUrgencyMessage
* @author Qiuwuzhi
* @date 2019/12/20 14:22
* @version V1.0
*/
public class SpecialUrgencyMessage extends AbstractMessage {
    @Override
    public void sendMessage(String message, String toUser) {
        message = "特急："+message;
        super.sendMessage(message, toUser);
        //还有增加一条待催促消息
    }

    public void hurry(String messageId){
        //执行催促业务，发出催促消息
    }

    /**
     * 构造方法，传入实现部分的对象
     *
     * @param implementor
     */
    public SpecialUrgencyMessage(MessageImplementor implementor) {
        super(implementor);
    }
}
